<%@page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/include/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><fmt:message key="login.title"/></title>
    <style type="text/css">
      body {
        padding-top: 40px;
        padding-bottom: 40px;
        background-color: #f5f5f5;
      }
      #container{
      	padding-top: 100px;
      }

      .form-signin {
        max-width: 300px;
        padding: 19px 29px 29px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }
      .form-signin input[type="text"],
      .form-signin input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
      }
    </style>
  </head>

  <body>
	
	
    <div id="container">
      <form class="form-signin" action="" method="post">
        <h2 class="form-signin-heading"><fmt:message key="login.hello"/></h2>
        <input name="username" type="text" class="input-block-level" value="liwei">
        <input name="password" type="password" class="input-block-level" value="8888">
        <label class="checkbox">
          <input type="checkbox" name="rememberMe" value="true"><fmt:message key="login.remeberMe"/>
        </label>
        <button class="btn btn-large btn-primary" type="submit"><fmt:message key="login.submit"/></button>
      </form>
	  <c:if test="${not empty shiroLoginFailure}">
	  		<font color="red">错误消息：<fmt:message key="${shiroLoginFailure}"/></font>
	  </c:if>
    </div>
  </body>
</html>
